package com.ma.crawl_book.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CrawlBook {

    @Autowired
    CloneBook  cloneBook;

    public void startCrawl(){
        for (int i = 173; i < 174; i++) {
            String url = "http://www.23us.so/xiaoshuo/" + i + ".html";
            cloneBook.startCrawl(url);
        }
    }
}
